WCMPE=0, CMPBIE=0, CMPAIE=0, CMPAB=00, CMPAE=0, CMPBE=0
A/D Compare Function Control Register
CMPAB | Window A/B Composite Conditions Setting NOTE: These bits are valid when both window A and window B are enabled (CMPAE = 1 and CMPBE = 1). 0 (00): S12ADWMELC is output when window A comparison conditions are met OR window B comparison conditions are met. S12ADWUMELC is output in other cases. 1 (01): S12ADWMELC is output when window A comparison conditions are met EXOR window B comparison conditions are met. S12ADWUMELC is output in other cases. 2 (10): S12ADWMELC is output when window A comparison conditions are met and window B comparison conditions are met. S12ADWUMELC is output in other cases. 3 (11): Setting prohibited. |
Reserved | These bits are read as 0000000. The write value should be 0000000. |
CMPBE | Compare Window B Operation Enable 0 (0): Compare window B operation is disabled. S12ADWMELC and S12ADWUMELC outputs are disabled. 1 (1): Compare window B operation is enabled. |
Reserved | This bit is read as 0. The write value should be 0. |
CMPAE | Compare Window A Operation Enable 0 (0): Compare window A operation is disabled. S12ADWMELC and S12ADWUMELC outputs are disabled. 1 (1): Compare window A operation is enabled. |
Reserved | This bit is read as 0. The write value should be 0. |
CMPBIE | Compare B Interrupt Enable 0 (0): S12ADCMPBIi interrupt is disabled when comparison conditions (window B) are met. 1 (1): S12ADCMPBIi interrupt is enabled when comparison conditions (window B) are met. |
WCMPE | Window Function Setting 0 (0): Window function is disabled. Window A and window B operate as a comparator to comparator the single value on the lower side with the A/D conversion result. 1 (1): Window function is enabled. Window A and window B operate as a comparator to comparator the two values on the upper and lower sides with the A/D conversion result. |
CMPAIE | Compare A Interrupt Enable 0 (0): S12ADCMPAIi interrupt is disabled when comparison conditions (window A) are met. 1 (1): S12ADCMPAIi interrupt is enabled when comparison conditions (window A) are met. |